﻿@model BookStore.Models.Vm_Model.Pagging
<div class="row">
    <ul class="pagination">
        <li><a href="#">&laquo;</a></li>
        @for (int i = 0; i < Model.TotalPage; i++)
        {
            <li class="page" data_page="@i" ><a>@i</a></li>
        }
        <li><a href="#">&raquo;</a></li>
    </ul>
</div>

<script type="text/javascript">
    //$("form").submit(function () {
    //    alert("Submitted");
    //});
 
    $(".page").click(function () {
        var page = $(this).attr('data_page');
        alert(page);
    });
 

</script>
